package dj.webservice.mas.org.csapi.schema.sms;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;

/**
 * <p>
 * Java class for DeliveryStatus.
 * 
 * <p>
 * The following schema fragment specifies the expected content contained within this class.
 * <p>
 * 
 * <pre>
 * &lt;simpleType name="DeliveryStatus">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="Delivered"/>
 *     &lt;enumeration value="DeliveryUncertain"/>
 *     &lt;enumeration value="DeliveryImpossible"/>
 *     &lt;enumeration value="MessageWaiting"/>
 *     &lt;enumeration value="DeliveryToTerminal"/>
 *     &lt;enumeration value="DeliveryNotificationNotSupported"/>
 *     &lt;enumeration value="KeyWordFilterFailed"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "DeliveryStatus")
@XmlEnum
public enum DeliveryStatus {

	@XmlEnumValue("Delivered")
	DELIVERED("短消息已成功递交"), 
	@XmlEnumValue("DeliveryUncertain")
	DELIVERY_UNCERTAIN("递交状态未知"), 
	@XmlEnumValue("DeliveryImpossible")
	DELIVERY_IMPOSSIBLE("无法成功发送；短消息在超时前无法被递交。"), 
	@XmlEnumValue("MessageWaiting")
	MESSAGE_WAITING("消息仍在排队等待递交。"), 
	@XmlEnumValue("DeliveryToTerminal")
	DELIVERY_TO_TERMINAL("短消息已发给终端。"), 
	@XmlEnumValue("DeliveryNotificationNotSupported")
	DELIVERY_NOTIFICATION_NOT_SUPPORTED("不支持短消息提交通知。"), 
	@XmlEnumValue("KeyWordFilterFailed")
	KEY_WORD_FILTER_FAILED("关键字过滤未通过。");
	private final String value;

	DeliveryStatus(String v) {
		value = v;
	}

	public String value() {
		return value;
	}

	public static DeliveryStatus fromValue(String v) {
		for (DeliveryStatus c : DeliveryStatus.values()) {
			if (c.value.equals(v)) {
				return c;
			}
		}
		throw new IllegalArgumentException(v);
	}

}
